package structuralPattern.decorator.example02;

public class DataLoaderDecorator extends DataLoder{

    protected DataLoder dataLoder;

    public DataLoaderDecorator(DataLoder dataLoder) {
        this.dataLoder = dataLoder;
    }

    @Override
    public String read() {
        return dataLoder.read();
    }

    @Override
    public void write(String str) {
        dataLoder.write(str);
    }
}
